package cn.sunshine.framework.beans.factory.support;

import cn.sunshine.framework.beans.BeansException;
import cn.sunshine.framework.core.io.Resource;
import cn.sunshine.framework.core.io.ResourceLoader;

/**
 * @Description BeanDefinition 注册规范
 * @Author Mokairui
 * @Since 2021/12/11
 */
public interface BeanDefinitionReader {

    BeanDefinitionRegistry getRegistry();

    ResourceLoader getResourceLoader();

    void loadBeanDefinition(Resource resource) throws BeansException;

    void loadBeanDefinition(Resource... resources) throws BeansException;

    void loadBeanDefinition(String location) throws BeansException;

    void loadBeanDefinition(String... locations) throws BeansException;

}
